//
//  RHBaseBleViewController.m
//  RuiHeAppApp
//
//  Created by Yan Chen on 2024/4/28.
//

#import "RHBaseBleViewController.h"


@interface RHBaseBleViewController ()

@end

@implementation RHBaseBleViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.recieveMsg = YES;
    NSLog(@"----->加载控制器 %@",NSStringFromClass([self class]));
}

-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.recieveMsg = YES;
}

-(void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    self.recieveMsg = NO;
}


-(void)receiveDeviceMsg:(NSNotification*)no
{
    if(self.recieveMsg == NO)return;
    
    
}

-(NSMutableDictionary *)dataDic
{
    if(!_dataDic){
        _dataDic = [NSMutableDictionary dictionary];
    }
    return _dataDic;
}


-(void)dealloc
{
    [[NSNotificationCenter defaultCenter]removeObserver:self];
}
@end
